import request from '@/utils/request'

// 查询考勤列表
export function listClock(query) {
  return request({
    url: '/business/clock/list',
    method: 'get',
    params: query
  })
}

// 查询考勤详细
export function getClock(clockId) {
  return request({
    url: '/business/clock/' + clockId,
    method: 'get'
  })
}

// 新增考勤
export function addClock(data) {
  return request({
    url: '/business/clock',
    method: 'post',
    data: data
  })
}

// 修改考勤
export function updateClock(data) {
  return request({
    url: '/business/clock',
    method: 'put',
    data: data
  })
}

// 删除考勤
export function delClock(clockId) {
  return request({
    url: '/business/clock/' + clockId,
    method: 'delete'
  })
}
